{% extends "site_base.html" %}

{% load i18n %}

{% block head_title %}{% endblock %}
{% block body %}
<div id ="search_container">	
	<h2>Хайлт: {{query_string}}</h2><br />
	<ul>
		{% if found_articles %}
		    {% for article in found_articles %}
		    	<li><a href="/articles/{{article.id}}">{{ article.header }}</a></li>
		    {% endfor %}
		{% endif %}
		
		{% if found_files %}
		    {% for file in found_files %}
		    	<li><a href="/files/{{file.id}}">{{ file.file_name }}</a></li>
		    {% endfor %}
		{% endif %}
		
		{% if found_universities %}
		    {% for university in found_universities %}
		    	<li><a href="/universities/{{university.id}}">{{ university.uni_name }}</a></li>
		    {% endfor %}
		{% endif %}
		
		{% if found_institutions %}
		    {% for institution in found_institutions %}
		    	<li><a href="/institutions/{{institution.id}}">{{ institution.ins_name }}</a></li>
		    {% endfor %}
		{% endif %}
		
		{% if not found_articles %}
			{% if not found_files %} 
				{% if not found_universities %} 
					{% if not found_institutions %}
						<p>Хайлт олдсонгүй</p>
					{% endif %}
				{% endif %}
			{% endif %}
		{% endif %}
	</ul>
</div>
{% endblock %}